import request from '@/config/axios'
// 获取list
export const getTreeList = () => {
    return request.get({ url: '/api/system/base/treeList'})
}
export const getTreeLists = (params) => {
    return request.get({ url: '/api/system/base/treeList',params})
}
export const addbase = (data:any) => {
    return request.post({ url: '/api/system/base',data:data})
}
export const editbase = (data:any) => {
    return request.put({ url: '/api/system/base',data:data})
}
export const deletebase = (params:any) => {
    return request.delete({ url: '/api/system/base/'+params})
}
// 查询详情
export const getDetail = (params:any) => {
    return request.get({ url: '/api/system/base/'+params})
}

